package com.easy.mapper;

import com.easy.bean.Quality_inspection;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface QualityInspectionDao {
    int add(@Param("param") Quality_inspection inspection);
    int del(@Param("id") Integer id);
    int edit(@Param("param") Quality_inspection inspection);
    Quality_inspection one(@Param("id") Integer id);
    List<Quality_inspection> all(
            @Param("production_order_id") Integer productionOrderId,
            @Param("purchase_order_id") Integer purchaseOrderId,
            @Param("inspector_id") Integer inspectorId
    );
    int pageCount(@Param("param") Quality_inspection inspection);
    List<Quality_inspection> page(@Param("page") Page page, @Param("param") Quality_inspection inspection);
}